<style>
.admin_nav {padding:10px; background-color:#EEE; border-bottom:1px solid #CCC;}
.admin_nav a {font-size:14px; margin-right:20px;}
.admin_page {border:1px solid #EEE; padding:5px 20px;}
.admin_page a {display:inline-block; padding:2px 5px; margin-right:20px;}
.mark_r {display:inline-block; padding:3px 5px; background-color:#F00; color:#FFF;}
.mark_y {display:inline-block; padding:3px 5px; background-color:#AA0; color:#FFF;}
.mark_g {display:inline-block; padding:3px 5px; background-color:#060; color:#FFF;}
</style>
<div class="admin_nav">
	<a href="a.php?flag=uncheck">未审核文章</a>
	<a href="a.php?flag=checked">审核通过的文章</a>
	<a href="a.php?flag=hot">首页HOT</a>
	<a href="a.php?flag=circle">圈子</a>
	<a href="a.php?flag=circle_hot">圈子HOT</a>
	<a href="a.php?flag=error_dev">ERROR DEV</a>
	<a href="a.php?flag=browser_info">Browser Info</a>
</div>

<script type="text/javascript">
function admin_reader (id, close_function) {
	UM_LAYER.open('a/reader', {'id':id, 'flag':'<{$smarty.get.flag}>'}, '', close_function);
}
var AR = new function () {
	this.set_to_pass = function (id) {
		loadMod('a/set_to_pass', {'id':id}, '', function(msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
	this.set_to_hot = function (id) {
		loadMod('a/set_to_hot', {'id':id}, '', function(msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
	this.set_un_hot = function (id) {
		loadMod('a/set_un_hot', {'id':id}, '', function(msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
	this.del = function (id) {
		
	}
	this.set_circle_hot = function (id) {
		loadMod('a/set_circle_hot', {'id':id}, '', function(msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
	this.set_circle_unhot = function (id) {
		loadMod('a/set_circle_unhot', {'id':id}, '', function(msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
	this.del_error = function (id) {
		loadMod('a/action_del_error', {'id':id}, '', function (msg){
			if (msg == 'true') {
				location.href = location.href;
			} else {
				alert('Failed! ' + msg);
			}
		} );
	}
}
</script>